package com.zmn.brs.common.model.dio;

import com.zmn.brs.common.enums.EventEnum;
import com.zmn.brs.common.enums.PlatEnum;
import com.zmn.brs.common.model.DIO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * 类描述：操作记录入参
 *
 * @author zhangyao
 * @since 2021/04/20 11:27
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(value = "操作记录信息")
public class OperateRecordDIO implements DIO {

    /**
     * 平台
     */
    @ApiParam(value = "平台", required = true)
    @NotNull(message = "平台不能为空")
    private PlatEnum plat;

    /**
     * 渠道ID
     */
    @ApiParam(value = "渠道ID")
    private Integer channelId;

    /**
     * 事件
     */
    @ApiParam(value = "事件", required = true)
    @NotNull(message = "事件不能为空")
    private EventEnum event;

    /**
     * 对象身份
     */
    @ApiParam(value = "对象身份", required = true)
    @NotNull(message = "对象身份不能为空")
    private Integer objectIdentity;

    /**
     * 对象ID
     */
    @ApiParam(value = "对象ID", required = true)
    @NotNull(message = "对象ID不能为空")
    private Long objectId;

    /**
     * 对象手机号
     */
    @ApiParam(value = "对象手机号")
    private String objectMobile;

    /**
     * 对象IP地址
     */
    @ApiParam(value = "对象IP地址")
    private String objectIp;

}
